package com.example.demo.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.demo.mapper.IResultDao;
import com.example.demo.pojo.Result;
import com.example.demo.service.IResultService;

@Service("ResultService")
public class ResultServiceImpl implements IResultService {

	@Resource
	private IResultDao ResultDao;

	@Override
	public int insertResult(Result Result) {
		// TODO Auto-generated method stub
		return this.ResultDao.insertResult(Result);
	}

	@Override
	public List<Result> selectResultByMid(Integer id) {
		// TODO Auto-generated method stub
		return this.ResultDao.selectResultByMid(id);
	}

	@Override
	public int deleteResultById(Integer id) {
		// TODO Auto-generated method stub
		return this.ResultDao.deleteResultById(id);
	}

	@Override
	public int updateMreultById(Result Result) {
		// TODO Auto-generated method stub
		return this.ResultDao.updateMreultById(Result);
	}

	@Override
	public Result selectResultByNum(Integer mid, Integer rnum) {
		// TODO Auto-generated method stub
		return this.ResultDao.selectResultByNum(mid, rnum);
	}

	@Override
	public Result selectResultById(Integer id) {
		// TODO Auto-generated method stub
		return this.ResultDao.selectResultById(id);
	}

	@Override
	public List<Result> selectResult() {
		return this.ResultDao.selectResult();
	}


}
